home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 659 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.0 KB  |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: uucp-1.csn.net!slimer!bgeerdes
  3. From: bgeerdes@igs.com (Bruce Geerdes)
  4. Subject: Re: Rogue Wave bug? / How buggy is Rogue Wave?
  5. Message-ID: <1996Jan5.155910.9618@igs.com>
  6. Organization: Igs, Inc.
  7. X-Newsreader: TIN [version 1.2 PL2]
  8. References: <DKo7KB.6KL@unx.sas.com>
  9. Date: Fri, 5 Jan 96 15:59:10 GMT
  10.  
  11. Russell Gonsalves (sasrag@ramanujn.unx.sas.com) wrote:
  12. > It seems to badly handle null-strings.  The last
  13. > print still prints yy.  While test.isNull() is
  14. > aware that the string is a null-terminated string,
  15. > such a RWCString cast to const char * does not
  16. > point to "".  This appears to defeat the otherwise
  17. > seamless and elegant conversion between RWCStrings
  18. > and character pointers.
  19.  
  20. It is not a problem with casting RWCString to "const char *".  If you change
  21. the line
  22.  
  23.     test = ""
  24.  
  25. to
  26.  
  27.     RWCString blank;
  28.     test = blank;
  29.  
  30. it works; test is empty.  It seems that RWCStrings do not like being assigned 
  31. to "".  Another way to empty test is:
  32.  
  33.     test.resize(0);
  34.  
  35. -- 
  36. bgeerdes@igs.com (Bruce Geerdes)
  37.